package com.edu.test;
/*
 * @Author:princess
 * @Date 2023/10/30 10 30 21:06
 *
 */

import com.edu.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyTest3 {
    /*
        bean后处理器代理
        取到 UserService 直接就是被增强过的
        UserServiceImplement 放到spring 容器里
     */
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-ioc.xml");
        UserService userService = context.getBean(UserService.class);
        userService.selectUser();
    }
}
